package com.rran.study.designpattern.behavioral.template.service.spring;

import com.rran.study.designpattern.behavioral.template.service.AbstractShoppingTemplete;
import org.springframework.stereotype.Component;

/**
 * @author yy
 * @Type PersonAGoShopping.java
 * @Desc
 * @date 2020/7/21 15:22
 */
@Component("personCSpringGoShopping")
public class PersonCSpringGoShopping extends AbstractShoppingTemplete {


    @Override
    protected void browse() {
        System.out.println("浏览玩具");
    }

    @Override
    protected void buy() {
        System.out.println("购买玩具");
    }

    @Override
    protected void pay() {
        System.out.println("使用银联支付");
    }
}
